﻿﻿@using DevExpress.Blazor

<div class="rules-engine-toolbar">
    <DxToolbar SizeMode="SizeMode.Small">
        <Items>
            <DxToolbarItem Alignment="ToolbarItemAlignment.Right" IconUrl="@ImageUrlService.GetImageUrl("Actions_Undo")" Enabled="UndoManager.CanUndo" Click="Undo" />
            <DxToolbarItem Alignment="ToolbarItemAlignment.Right" IconUrl="@ImageUrlService.GetImageUrl("Actions_Redo")" Enabled="UndoManager.CanRedo" Click="Redo" />
            <DxToolbarItem Alignment="ToolbarItemAlignment.Right" IconUrl="@ImageUrlService.GetImageUrl("BestFit")" BeginGroup="true" Click="BestFitAsync" />
            <DxToolbarItem Alignment="ToolbarItemAlignment.Right" IconUrl="@ImageUrlService.GetImageUrl("FitToDrawing")" Click="FitToViewportAsync" />
            <DxToolbarItem Alignment="ToolbarItemAlignment.Right" IconUrl="@ImageUrlService.GetImageUrl("ZoomIn")" Enabled="Zoom<3" BeginGroup="true" Click="ZoomInAsync" />
            <DxToolbarItem Alignment="ToolbarItemAlignment.Right" IconUrl="@ImageUrlService.GetImageUrl("Zoom100")" Enabled="Zoom!=1" Click="Zoom100Async" />
            <DxToolbarItem Alignment="ToolbarItemAlignment.Right" IconUrl="@ImageUrlService.GetImageUrl("ZoomOut")" Enabled="Zoom>0.1" Click="ZoomOutAsync" />
            <DxToolbarItem Alignment="ToolbarItemAlignment.Right" IconUrl="@ImageUrlService.GetImageUrl("PanAndZoomPanel")" Checked="MiniMapVisible" BeginGroup="true" Click="VisibleOrHideMiniMapAsync" />
        </Items>
    </DxToolbar>
</div>